home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1990-11-21 | 7.8 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Wed Nov 21 16:07:47 1990, modified Wed Nov 21 16:07:47 1990, creator 'MPS ', type ASCII, 7269 bytes "Hacking GCC" , at 0x1ce5 428 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 48 61 63 6b 69 6e | 67 20 47 43 43 00 00 00 |..Hackin|g GCC...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 1c 65 00 | 00 01 ac a3 70 9d 23 a3 |......e.|....p.#.|
|00000060| 70 9d 23 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |p.#.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d1 23 00 00 |........|.....#..|
|00000080| 46 4f 4c 44 45 52 53 20 | 41 4e 44 20 50 41 54 48 |FOLDERS |AND PATH|
|00000090| 53 0d 0d 54 68 65 20 73 | 63 72 69 70 74 20 22 42 |S..The s|cript "B|
|000000a0| 75 69 6c 64 47 43 43 53 | 74 61 67 65 73 22 20 61 |uildGCCS|tages" a|
|000000b0| 73 73 75 6d 65 73 20 74 | 68 61 74 20 74 68 65 20 |ssumes t|hat the |
|000000c0| 6d 61 69 6e 20 47 43 43 | 20 66 6f 6c 64 65 72 20 |main GCC| folder |
|000000d0| 69 73 20 6f 6e 65 20 6c | 65 76 65 6c 20 75 70 20 |is one l|evel up |
|000000e0| 66 72 6f 6d 0d 74 68 65 | 20 66 6f 6c 64 65 72 20 |from.the| folder |
|000000f0| 69 74 20 77 61 73 20 69 | 6e 20 77 68 65 6e 20 65 |it was i|n when e|
|00000100| 78 65 63 75 74 65 64 2e | 20 20 49 66 20 74 68 65 |xecuted.| If the|
|00000110| 20 73 63 72 69 70 74 20 | 69 73 20 61 6e 79 77 68 | script |is anywh|
|00000120| 65 72 65 20 65 6c 73 65 | 2c 20 74 68 65 6e 20 79 |ere else|, then y|
|00000130| 6f 75 20 77 69 6c 6c 0d | 6e 65 65 64 20 74 6f 20 |ou will.|need to |
|00000140| 70 61 73 73 20 74 68 65 | 20 70 61 74 68 20 74 6f |pass the| path to|
|00000150| 20 74 68 61 74 20 6d 61 | 69 6e 20 66 6f 6c 64 65 | that ma|in folde|
|00000160| 72 20 61 73 20 61 20 73 | 65 63 6f 6e 64 20 61 72 |r as a s|econd ar|
|00000170| 67 75 6d 65 6e 74 20 74 | 6f 20 42 75 69 6c 64 47 |gument t|o BuildG|
|00000180| 43 43 53 74 61 67 65 73 | 2e 0d 49 20 72 65 63 6f |CCStages|..I reco|
|00000190| 6d 6d 65 6e 64 20 6b 65 | 65 70 69 6e 67 20 61 6c |mmend ke|eping al|
|000001a0| 6c 20 47 43 43 20 73 74 | 75 66 66 20 69 6e 20 61 |l GCC st|uff in a|
|000001b0| 20 66 6f 6c 64 65 72 20 | 73 65 70 61 72 61 74 65 | folder |separate|
|000001c0| 20 66 72 6f 6d 20 4d 50 | 57 2c 20 62 75 74 20 69 | from MP|W, but i|
|000001d0| 74 27 73 20 6e 6f 74 20 | 72 65 71 75 69 72 65 64 |t's not |required|
|000001e0| 2e 0d 0d 42 49 53 4f 4e | 0d 0d 54 6f 20 72 65 62 |...BISON|..To reb|
|000001f0| 75 69 6c 64 20 47 43 43 | 20 66 72 6f 6d 20 73 63 |uild GCC| from sc|
|00000200| 72 61 74 63 68 2c 20 79 | 6f 75 20 6d 75 73 74 20 |ratch, y|ou must |
|00000210| 66 69 72 73 74 20 68 61 | 76 65 20 42 69 73 6f 6e |first ha|ve Bison|
|00000220| 3b 20 65 69 74 68 65 72 | 20 65 6e 73 75 72 65 20 |; either| ensure |
|00000230| 74 68 61 74 20 42 69 73 | 6f 6e 0d 69 73 20 69 6e |that Bis|on.is in|
|00000240| 20 6f 6e 65 20 6f 66 20 | 79 6f 75 72 20 54 6f 6f | one of |your Too|
|00000250| 6c 73 20 66 6f 6c 64 65 | 72 73 20 61 6e 64 20 74 |ls folde|rs and t|
|00000260| 68 61 74 20 74 68 65 20 | 73 6b 65 6c 65 74 6f 6e |hat the |skeleton|
|00000270| 20 70 61 72 73 65 72 73 | 20 22 62 69 73 6f 6e 2e | parsers| "bison.|
|00000280| 73 69 6d 70 6c 65 22 0d | 61 6e 64 20 22 62 69 73 |simple".|and "bis|
|00000290| 6f 6e 2e 68 61 69 72 79 | 22 20 72 65 73 69 64 65 |on.hairy|" reside|
|000002a0| 20 77 68 65 72 65 76 65 | 72 20 79 6f 75 72 20 76 | whereve|r your v|
|000002b0| 61 72 69 61 62 6c 65 20 | 7b 4c 69 62 72 61 72 69 |ariable |{Librari|
|000002c0| 65 73 7d 20 70 6f 69 6e | 74 73 2c 20 6f 72 20 72 |es} poin|ts, or r|
|000002d0| 65 62 75 69 6c 64 20 42 | 69 73 6f 6e 0d 62 79 20 |ebuild B|ison.by |
|000002e0| 67 6f 69 6e 67 20 74 6f | 20 74 68 65 20 42 69 73 |going to| the Bis|
|000002f0| 6f 6e 20 66 6f 6c 64 65 | 72 20 61 6e 64 20 62 75 |on folde|r and bu|
|00000300| 69 6c 64 69 6e 67 20 22 | 62 69 73 6f 6e 22 2c 20 |ilding "|bison", |
|00000310| 74 68 65 6e 20 6d 6f 76 | 69 6e 67 20 74 68 65 20 |then mov|ing the |
|00000320| 73 6b 65 6c 65 74 6f 6e | 20 70 61 72 73 65 72 73 |skeleton| parsers|
|00000330| 0d 74 6f 20 7b 4c 69 62 | 72 61 72 69 65 73 7d 2e |.to {Lib|raries}.|
|00000340| 0d 0d 52 45 42 55 49 4c | 44 49 4e 47 0d 0d 54 6f |..REBUIL|DING..To|
|00000350| 20 64 6f 20 61 20 62 61 | 73 69 63 20 72 65 63 6f | do a ba|sic reco|
|00000360| 6d 70 69 6c 61 74 69 6f | 6e 2c 20 74 79 70 65 20 |mpilatio|n, type |
|00000370| 22 42 75 69 6c 64 47 43 | 43 53 74 61 67 65 73 20 |"BuildGC|CStages |
|00000380| 31 22 2e 20 20 54 68 69 | 73 20 77 69 6c 6c 20 63 |1". Thi|s will c|
|00000390| 72 65 61 74 65 20 61 20 | 6e 65 77 20 66 6f 6c 64 |reate a |new fold|
|000003a0| 65 72 0d 47 43 43 2e 4d | 50 57 2e 73 31 2c 20 63 |er.GCC.M|PW.s1, c|
|000003b0| 6f 70 79 20 74 68 65 20 | 6e 65 63 65 73 73 61 72 |opy the |necessar|
|000003c0| 79 20 66 69 6c 65 73 20 | 66 72 6f 6d 20 47 43 43 |y files |from GCC|
|000003d0| 2e 4d 50 57 2c 20 61 6e | 64 20 63 72 65 61 74 65 |.MPW, an|d create|
|000003e0| 20 22 66 69 72 73 74 20 | 73 74 61 67 65 22 0d 28 | "first |stage".(|
|000003f0| 63 6f 6d 70 69 6c 65 64 | 20 62 79 20 4d 50 57 20 |compiled| by MPW |
|00000400| 43 29 20 63 70 70 20 61 | 6e 64 20 63 63 31 20 74 |C) cpp a|nd cc1 t|
|00000410| 6f 6f 6c 73 2c 20 77 68 | 69 63 68 20 63 61 6e 20 |ools, wh|ich can |
|00000420| 62 65 20 70 75 74 20 77 | 68 65 72 65 76 65 72 20 |be put w|herever |
|00000430| 79 6f 75 20 6c 69 6b 65 | 2e 20 20 54 68 65 0d 70 |you like|. The.p|
|00000440| 72 6f 63 65 73 73 20 74 | 61 6b 65 73 20 31 35 2d |rocess t|akes 15-|
|00000450| 32 30 20 6d 69 6e 75 74 | 65 73 20 6f 6e 20 61 20 |20 minut|es on a |
|00000460| 49 49 63 69 2e 20 20 54 | 68 65 20 72 65 73 75 6c |IIci. T|he resul|
|00000470| 74 73 20 61 72 65 20 6e | 6f 74 20 71 75 69 74 65 |ts are n|ot quite|
|00000480| 20 61 73 20 67 6f 6f 64 | 20 61 73 20 77 68 65 6e | as good| as when|
|00000490| 0d 47 43 43 20 63 6f 6d | 70 69 6c 65 73 20 69 74 |.GCC com|piles it|
|000004a0| 73 65 6c 66 2c 20 62 75 | 74 20 74 61 6b 65 20 61 |self, bu|t take a|
|000004b0| 20 6c 6f 74 20 6c 65 73 | 73 20 74 69 6d 65 20 74 | lot les|s time t|
|000004c0| 6f 20 70 72 6f 64 75 63 | 65 20 61 6e 64 20 61 72 |o produc|e and ar|
|000004d0| 65 20 66 69 6e 65 20 66 | 6f 72 20 74 65 73 74 69 |e fine f|or testi|
|000004e0| 6e 67 0d 63 68 61 6e 67 | 65 73 2e 0d 0d 54 6f 20 |ng.chang|es...To |
|000004f0| 67 65 74 20 74 68 65 20 | 62 65 73 74 20 76 65 72 |get the |best ver|
|00000500| 73 69 6f 6e 73 2c 20 79 | 6f 75 20 68 61 76 65 20 |sions, y|ou have |
|00000510| 74 6f 20 75 73 65 20 47 | 43 43 20 74 6f 20 63 6f |to use G|CC to co|
|00000520| 6d 70 69 6c 65 20 69 74 | 73 65 6c 66 2e 20 20 54 |mpile it|self. T|
|00000530| 68 72 65 65 20 63 6f 6d | 70 6c 65 74 65 0d 63 6f |hree com|plete.co|
|00000540| 6d 70 69 6c 61 74 69 6f | 6e 73 20 77 69 6c 6c 20 |mpilatio|ns will |
|00000550| 62 65 20 6e 65 63 65 73 | 73 61 72 79 2c 20 73 6f |be neces|sary, so|
|00000560| 20 64 6f 20 22 42 75 69 | 6c 64 47 43 43 53 74 61 | do "Bui|ldGCCSta|
|00000570| 67 65 73 20 33 22 2e 20 | 20 4f 6e 20 61 20 49 49 |ges 3". | On a II|
|00000580| 63 69 2c 20 69 74 20 77 | 69 6c 6c 20 72 75 6e 20 |ci, it w|ill run |
|00000590| 66 6f 72 0d 61 62 6f 75 | 74 20 74 77 6f 20 68 6f |for.abou|t two ho|
|000005a0| 75 72 73 2e 20 20 49 66 | 20 79 6f 75 20 73 61 79 |urs. If| you say|
|000005b0| 20 22 42 75 69 6c 64 47 | 43 43 53 74 61 67 65 73 | "BuildG|CCStages|
|000005c0| 20 34 22 20 69 6e 73 74 | 65 61 64 2c 20 74 68 65 | 4" inst|ead, the|
|000005d0| 6e 20 69 74 20 77 69 6c | 6c 20 64 6f 20 6f 6e 65 |n it wil|l do one|
|000005e0| 20 6d 6f 72 65 0d 73 65 | 6c 66 2d 63 6f 6d 70 69 | more.se|lf-compi|
|000005f0| 6c 61 74 69 6f 6e 3b 20 | 74 68 65 20 66 6f 75 72 |lation; |the four|
|00000600| 74 68 2d 73 74 61 67 65 | 20 63 6f 6d 70 69 6c 65 |th-stage| compile|
|00000610| 72 20 73 68 6f 75 6c 64 | 20 62 65 20 2a 63 6f 6d |r should| be *com|
|00000620| 70 6c 65 74 65 6c 79 2a | 20 69 64 65 6e 74 69 63 |pletely*| identic|
|00000630| 61 6c 20 74 6f 20 74 68 | 65 0d 74 68 69 72 64 20 |al to th|e.third |
|00000640| 73 74 61 67 65 2e 20 20 | 49 66 20 6e 6f 74 2c 20 |stage. |If not, |
|00000650| 74 68 65 6e 20 73 6f 6d | 65 74 68 69 6e 67 20 69 |then som|ething i|
|00000660| 73 20 77 72 6f 6e 67 2e | 20 20 49 6e 20 61 6e 79 |s wrong.| In any|
|00000670| 20 63 61 73 65 2c 20 74 | 68 65 20 74 68 69 72 64 | case, t|he third|
|00000680| 20 73 74 61 67 65 20 63 | 70 70 20 61 6e 64 0d 63 | stage c|pp and.c|
|00000690| 63 31 20 28 69 6e 20 47 | 43 43 2e 4d 50 57 2e 73 |c1 (in G|CC.MPW.s|
|000006a0| 33 29 20 61 72 65 20 74 | 68 65 20 6f 6e 65 73 20 |3) are t|he ones |
|000006b0| 74 6f 20 75 73 65 20 28 | 64 72 6f 70 20 74 68 65 |to use (|drop the|
|000006c0| 6d 20 61 6e 79 77 68 65 | 72 65 20 6f 6e 20 79 6f |m anywhe|re on yo|
|000006d0| 75 72 20 63 6f 6d 6d 61 | 6e 64 20 70 61 74 68 29 |ur comma|nd path)|
|000006e0| 2e 0d 0d 42 75 69 6c 64 | 47 43 43 53 74 61 67 65 |...Build|GCCStage|
|000006f0| 73 20 6e 65 65 64 73 20 | 6c 6f 74 73 20 6f 66 20 |s needs |lots of |
|00000700| 65 78 74 72 61 20 64 69 | 73 6b 73 70 61 63 65 2c |extra di|skspace,|
|00000710| 20 61 62 6f 75 74 20 33 | 4d 62 2f 73 74 61 67 65 | about 3|Mb/stage|
|00000720| 20 6f 76 65 72 20 61 6e | 64 20 61 62 6f 76 65 0d | over an|d above.|
|00000730| 74 68 65 20 38 4d 62 20 | 6f 66 20 74 68 65 20 73 |the 8Mb |of the s|
|00000740| 6f 75 72 63 65 20 64 69 | 73 74 72 69 62 75 74 69 |ource di|stributi|
|00000750| 6f 6e 2e 20 20 41 63 74 | 75 61 6c 6c 79 2c 20 65 |on. Act|ually, e|
|00000760| 61 63 68 20 73 74 61 67 | 65 20 6f 6e 6c 79 20 72 |ach stag|e only r|
|00000770| 65 61 6c 6c 79 20 6e 65 | 65 64 73 0d 74 68 65 20 |eally ne|eds.the |
|00000780| 74 6f 6f 6c 73 20 62 75 | 69 6c 74 20 69 6e 20 74 |tools bu|ilt in t|
|00000790| 68 65 20 70 72 65 76 69 | 6f 75 73 20 73 74 61 67 |he previ|ous stag|
|000007a0| 65 2c 20 6e 6f 74 20 74 | 68 65 20 6f 62 6a 65 63 |e, not t|he objec|
|000007b0| 74 20 6f 72 20 74 65 6d | 70 20 66 69 6c 65 73 2c |t or tem|p files,|
|000007c0| 20 73 6f 20 74 68 65 79 | 0d 63 6f 75 6c 64 20 62 | so they|.could b|
|000007d0| 65 20 64 65 6c 65 74 65 | 64 20 74 6f 20 73 61 76 |e delete|d to sav|
|000007e0| 65 20 73 70 61 63 65 2e | 0d 0d 49 66 20 49 27 6d |e space.|..If I'm|
|000007f0| 20 72 65 62 75 69 6c 64 | 69 6e 67 20 66 6f 72 20 | rebuild|ing for |
|00000800| 65 78 70 65 72 69 6d 65 | 6e 74 61 74 69 6f 6e 2c |experime|ntation,|
|00000810| 20 49 20 75 73 75 61 6c | 6c 79 20 6a 75 73 74 20 | I usual|ly just |
|00000820| 61 64 64 20 47 43 43 2e | 4d 50 57 20 74 6f 20 74 |add GCC.|MPW to t|
|00000830| 68 65 20 66 72 6f 6e 74 | 20 6f 66 0d 6d 79 20 63 |he front| of.my c|
|00000840| 6f 6d 6d 61 6e 64 20 70 | 61 74 68 2c 20 74 6f 20 |ommand p|ath, to |
|00000850| 61 76 6f 69 64 20 74 68 | 65 20 63 6f 6e 66 75 73 |avoid th|e confus|
|00000860| 69 6f 6e 20 6f 66 20 6f | 6c 64 20 76 65 72 73 69 |ion of o|ld versi|
|00000870| 6f 6e 73 20 67 65 74 74 | 69 6e 67 20 75 73 65 64 |ons gett|ing used|
|00000880| 20 69 6e 73 74 65 61 64 | 2e 20 20 54 68 65 0d 2d | instead|. The.-|
|00000890| 74 6f 6f 6c 73 20 6f 70 | 74 69 6f 6e 20 69 73 20 |tools op|tion is |
|000008a0| 61 6c 73 6f 20 75 73 65 | 66 75 6c 20 66 6f 72 20 |also use|ful for |
|000008b0| 74 68 69 73 2e 0d 0d 41 | 6e 6f 74 68 65 72 20 73 |this...A|nother s|
|000008c0| 70 65 65 64 75 70 20 69 | 73 20 74 6f 20 75 73 65 |peedup i|s to use|
|000008d0| 20 74 68 65 20 22 69 6e | 73 6e 22 20 74 61 72 67 | the "in|sn" targ|
|000008e0| 65 74 20 69 6e 73 74 65 | 61 64 20 6f 66 20 22 63 |et inste|ad of "c|
|000008f0| 63 31 22 20 69 66 20 6f | 6e 6c 79 20 74 68 65 20 |c1" if o|nly the |
|00000900| 6d 61 63 68 69 6e 65 0d | 64 65 73 63 72 69 70 74 |machine.|descript|
|00000910| 69 6f 6e 20 22 6d 64 22 | 20 68 61 73 20 62 65 65 |ion "md"| has bee|
|00000920| 6e 20 63 68 61 6e 67 65 | 64 2e 20 20 4d 50 57 20 |n change|d. MPW |
|00000930| 6d 61 6b 65 66 69 6c 65 | 73 20 68 61 76 65 20 74 |makefile|s have t|
|00000940| 6f 20 64 6f 20 61 6c 6c | 20 74 68 65 20 64 65 70 |o do all| the dep|
|00000950| 65 6e 64 65 6e 63 79 0d | 63 68 65 63 6b 69 6e 67 |endency.|checking|
|00000960| 20 62 65 66 6f 72 65 20 | 73 74 61 72 74 69 6e 67 | before |starting|
|00000970| 20 65 78 65 63 75 74 69 | 6f 6e 2c 20 77 68 69 63 | executi|on, whic|
|00000980| 68 20 6d 65 61 6e 73 20 | 74 68 61 74 20 74 68 65 |h means |that the|
|00000990| 79 20 63 61 6e 27 74 20 | 74 61 6b 65 20 61 64 76 |y can't |take adv|
|000009a0| 61 6e 74 61 67 65 20 6f | 66 0d 74 68 65 20 66 61 |antage o|f.the fa|
|000009b0| 63 74 20 74 68 61 74 20 | 6d 6f 73 74 20 6f 66 20 |ct that |most of |
|000009c0| 74 68 65 20 69 6e 73 6e | 2d 2a 20 66 69 6c 65 73 |the insn|-* files|
|000009d0| 20 64 6f 6e 27 74 20 63 | 68 61 6e 67 65 20 77 68 | don't c|hange wh|
|000009e0| 65 6e 20 6d 64 20 69 73 | 20 63 68 61 6e 67 65 64 |en md is| changed|
|000009f0| 2e 20 20 48 6f 77 65 76 | 65 72 2c 0d 69 66 20 79 |. Howev|er,.if y|
|00000a00| 6f 75 20 6d 61 6b 65 20 | 22 69 6e 73 6e 22 20 61 |ou make |"insn" a|
|00000a10| 6e 64 20 74 68 65 6e 20 | 22 63 63 31 22 2c 20 74 |nd then |"cc1", t|
|00000a20| 68 65 20 6d 61 6b 65 66 | 69 6c 65 20 77 69 6c 6c |he makef|ile will|
|00000a30| 20 6f 6e 6c 79 20 68 61 | 76 65 20 74 6f 20 72 65 | only ha|ve to re|
|00000a40| 63 6f 6d 70 69 6c 65 20 | 74 68 65 0d 69 6e 73 6e |compile |the.insn|
|00000a50| 2d 2a 20 66 69 6c 65 73 | 20 74 68 61 74 20 77 65 |-* files| that we|
|00000a60| 72 65 20 61 63 74 75 61 | 6c 6c 79 20 63 68 61 6e |re actua|lly chan|
|00000a70| 67 65 64 20 62 79 20 6d | 61 6b 69 6e 67 20 22 69 |ged by m|aking "i|
|00000a80| 6e 73 6e 22 2e 0d 0d 42 | 55 49 4c 44 49 4e 47 20 |nsn"...B|UILDING |
|00000a90| 47 43 43 20 46 4f 52 20 | 36 38 30 30 30 20 61 6e |GCC FOR |68000 an|
|00000aa0| 64 2f 6f 72 20 53 41 4e | 45 0d 0d 41 74 20 70 72 |d/or SAN|E..At pr|
|00000ab0| 65 73 65 6e 74 2c 20 6f | 6e 65 20 6f 66 20 47 43 |esent, o|ne of GC|
|00000ac0| 43 27 73 20 75 6e 72 65 | 73 6f 6c 76 65 64 20 62 |C's unre|solved b|
|00000ad0| 75 67 73 20 72 65 71 75 | 69 72 65 73 20 62 6f 74 |ugs requ|ires bot|
|00000ae0| 68 20 2d 6d 63 36 38 30 | 32 30 20 61 6e 64 20 2d |h -mc680|20 and -|
|00000af0| 6d 63 36 38 38 38 31 20 | 74 6f 20 62 65 0d 74 75 |mc68881 |to be.tu|
|00000b00| 72 6e 65 64 20 6f 6e 20 | 77 68 65 6e 20 63 6f 6d |rned on |when com|
|00000b10| 70 69 6c 69 6e 67 20 69 | 74 73 65 6c 66 2e 20 20 |piling i|tself. |
|00000b20| 47 43 43 20 69 73 20 74 | 6f 6f 20 73 6c 6f 77 20 |GCC is t|oo slow |
|00000b30| 74 6f 20 62 65 20 70 61 | 72 74 69 63 75 6c 61 72 |to be pa|rticular|
|00000b40| 6c 79 20 61 74 74 72 61 | 63 74 69 76 65 20 6f 6e |ly attra|ctive on|
|00000b50| 0d 6f 6c 64 65 72 2f 73 | 6c 6f 77 65 72 20 4d 61 |.older/s|lower Ma|
|00000b60| 63 73 20 61 6e 79 77 61 | 79 2c 20 73 6f 20 74 68 |cs anywa|y, so th|
|00000b70| 69 73 20 64 69 64 6e 27 | 74 20 73 65 65 6d 20 6c |is didn'|t seem l|
|00000b80| 69 6b 65 20 61 20 72 65 | 61 6c 20 68 61 72 64 73 |ike a re|al hards|
|00000b90| 68 69 70 2e 20 49 66 20 | 79 6f 75 20 72 65 61 6c |hip. If |you real|
|00000ba0| 6c 79 0d 72 65 61 6c 6c | 79 20 6e 65 65 64 20 61 |ly.reall|y need a|
|00000bb0| 20 36 38 30 30 30 2b 53 | 41 4e 45 20 47 43 43 2c | 68000+S|ANE GCC,|
|00000bc0| 20 62 75 74 20 64 6f 6e | 27 74 20 63 61 72 65 20 | but don|'t care |
|00000bd0| 61 62 6f 75 74 20 68 61 | 76 69 6e 67 20 69 74 20 |about ha|ving it |
|00000be0| 62 65 20 73 65 6c 66 2d | 63 6f 6d 70 69 6c 65 64 |be self-|compiled|
|00000bf0| 2c 20 79 6f 75 0d 63 6f | 75 6c 64 20 62 75 69 6c |, you.co|uld buil|
|00000c00| 64 20 74 68 65 20 66 69 | 72 73 74 20 73 74 61 67 |d the fi|rst stag|
|00000c10| 65 20 77 69 74 68 6f 75 | 74 20 2d 6d 63 36 38 30 |e withou|t -mc680|
|00000c20| 32 30 20 61 6e 64 20 2d | 6d 63 36 38 38 38 31 20 |20 and -|mc68881 |
|00000c30| 61 6e 64 20 75 73 65 20 | 74 68 61 74 3b 20 69 74 |and use |that; it|
|00000c40| 20 69 73 20 61 20 6c 69 | 74 74 6c 65 0d 73 6c 6f | is a li|ttle.slo|
|00000c50| 77 65 72 2c 20 61 6e 64 | 20 73 6f 6d 65 20 6f 70 |wer, and| some op|
|00000c60| 74 69 6d 69 7a 61 74 69 | 6f 6e 73 20 61 72 65 20 |timizati|ons are |
|00000c70| 6d 69 73 73 69 6e 67 2c | 20 62 75 74 20 6f 74 68 |missing,| but oth|
|00000c80| 65 72 77 69 73 65 20 77 | 6f 72 6b 73 20 66 69 6e |erwise w|orks fin|
|00000c90| 65 2e 0d 0d 54 45 53 54 | 49 4e 47 0d 0d 54 68 69 |e...TEST|ING..Thi|
|00000ca0| 73 20 69 73 20 61 6e 20 | 69 6d 70 6f 72 74 61 6e |s is an |importan|
|00000cb0| 74 20 73 74 65 70 2e 20 | 20 54 68 65 20 66 6f 6c |t step. | The fol|
|00000cc0| 64 65 72 20 54 65 73 74 | 73 20 68 61 73 20 61 20 |der Test|s has a |
|00000cd0| 66 65 77 20 70 72 6f 67 | 72 61 6d 73 20 74 68 61 |few prog|rams tha|
|00000ce0| 74 20 61 72 65 20 73 6d | 61 6c 6c 0d 65 6e 6f 75 |t are sm|all.enou|
|00000cf0| 67 68 20 74 6f 20 6c 6f | 6f 6b 20 61 74 20 74 68 |gh to lo|ok at th|
|00000d00| 65 20 61 73 73 65 6d 62 | 6c 79 20 63 6f 64 65 2c |e assemb|ly code,|
|00000d10| 20 70 6c 75 73 20 61 20 | 76 65 72 73 69 6f 6e 20 | plus a |version |
|00000d20| 6f 66 20 64 68 72 79 73 | 74 6f 6e 65 2e 20 20 59 |of dhrys|tone. Y|
|00000d30| 6f 75 20 73 68 6f 75 6c | 64 20 61 6c 73 6f 0d 74 |ou shoul|d also.t|
|00000d40| 72 79 20 75 73 69 6e 67 | 20 67 43 20 74 6f 20 62 |ry using| gC to b|
|00000d50| 75 69 6c 64 20 74 68 65 | 20 70 72 6f 67 72 61 6d |uild the| program|
|00000d60| 73 20 69 6e 20 74 68 65 | 20 4d 50 57 20 43 45 78 |s in the| MPW CEx|
|00000d70| 61 6d 70 6c 65 73 20 66 | 6f 6c 64 65 72 2e 20 20 |amples f|older. |
|00000d80| 4f 66 20 63 6f 75 72 73 | 65 2c 20 77 68 65 6e 0d |Of cours|e, when.|
|00000d90| 47 43 43 20 73 75 63 63 | 65 73 73 66 75 6c 6c 79 |GCC succ|essfully|
|00000da0| 20 73 65 6c 66 2d 63 6f | 6d 70 69 6c 65 73 2c 20 | self-co|mpiles, |
|00000db0| 69 74 20 69 73 20 73 65 | 76 65 72 65 6c 79 20 74 |it is se|verely t|
|00000dc0| 65 73 74 65 64 2e 20 20 | 46 6f 72 20 74 65 73 74 |ested. |For test|
|00000dd0| 20 73 75 69 74 65 73 2c | 20 77 65 20 68 61 76 65 | suites,| we have|
|00000de0| 0d 75 73 65 64 20 74 68 | 65 20 22 43 20 54 6f 72 |.used th|e "C Tor|
|00000df0| 74 75 72 65 20 54 65 73 | 74 22 20 28 61 76 61 69 |ture Tes|t" (avai|
|00000e00| 6c 61 62 6c 65 20 6f 6e | 20 76 61 72 69 6f 75 73 |lable on| various|
|00000e10| 20 49 6e 74 65 72 6e 65 | 74 20 73 65 72 76 65 72 | Interne|t server|
|00000e20| 73 29 20 61 6e 64 20 74 | 68 65 20 63 6f 6d 6d 65 |s) and t|he comme|
|00000e30| 72 63 69 61 6c 0d 50 6c | 75 6d 2d 48 61 6c 6c 20 |rcial.Pl|um-Hall |
|00000e40| 74 65 73 74 20 73 75 69 | 74 65 2e 0d 0d 52 45 54 |test sui|te...RET|
|00000e50| 41 52 47 45 54 49 4e 47 | 20 54 4f 20 45 58 49 53 |ARGETING| TO EXIS|
|00000e60| 54 49 4e 47 20 4d 41 43 | 48 49 4e 45 53 0d 0d 54 |TING MAC|HINES..T|
|00000e70| 6f 20 62 75 69 6c 64 20 | 47 43 43 20 66 6f 72 20 |o build |GCC for |
|00000e80| 6f 74 68 65 72 20 6d 61 | 63 68 69 6e 65 73 2c 20 |other ma|chines, |
|00000e90| 63 72 65 61 74 65 20 61 | 20 66 6f 6c 64 65 72 20 |create a| folder |
|00000ea0| 47 43 43 2e 3c 6d 61 63 | 68 69 6e 65 3e 20 61 6e |GCC.<mac|hine> an|
|00000eb0| 64 20 63 6f 70 79 20 74 | 68 65 20 64 65 73 69 72 |d copy t|he desir|
|00000ec0| 65 64 0d 6d 61 63 68 69 | 6e 65 2d 73 70 65 63 69 |ed.machi|ne-speci|
|00000ed0| 66 69 63 20 66 69 6c 65 | 73 20 66 72 6f 6d 20 74 |fic file|s from t|
|00000ee0| 68 65 20 4d 61 63 68 69 | 6e 65 73 20 66 6f 6c 64 |he Machi|nes fold|
|00000ef0| 65 72 2e 20 20 54 68 65 | 20 63 6f 70 69 65 73 20 |er. The| copies |
|00000f00| 77 69 6c 6c 20 62 65 20 | 73 6f 6d 65 74 68 69 6e |will be |somethin|
|00000f10| 67 20 6c 69 6b 65 0d 0d | 09 63 6f 70 79 20 3a 4d |g like..|.copy :M|
|00000f20| 61 63 68 69 6e 65 73 3a | 3c 6d 61 63 68 69 6e 65 |achines:|<machine|
|00000f30| 3e 2e 6d 64 20 3a 47 43 | 43 2e 3c 6d 61 63 68 69 |>.md :GC|C.<machi|
|00000f40| 6e 65 3e 3a 6d 64 0d 09 | 63 6f 70 79 20 3a 4d 61 |ne>:md..|copy :Ma|
|00000f50| 63 68 69 6e 65 73 3a 74 | 6d 2d 3c 6d 61 63 68 69 |chines:t|m-<machi|
|00000f60| 6e 65 3e 2e 68 20 3a 47 | 43 43 2e 3c 6d 61 63 68 |ne>.h :G|CC.<mach|
|00000f70| 69 6e 65 3e 3a 74 6d 2e | 68 0d 09 63 6f 70 79 20 |ine>:tm.|h..copy |
|00000f80| 3a 4d 61 63 68 69 6e 65 | 73 3a 6f 75 74 2d 3c 6d |:Machine|s:out-<m|
|00000f90| 61 63 68 69 6e 65 3e 2e | 63 20 3a 47 43 43 2e 3c |achine>.|c :GCC.<|
|00000fa0| 6d 61 63 68 69 6e 65 3e | 3a 61 75 78 2d 6f 75 74 |machine>|:aux-out|
|00000fb0| 70 75 74 2e 63 0d 09 63 | 6f 70 79 20 3a 4d 61 63 |put.c..c|opy :Mac|
|00000fc0| 68 69 6e 65 73 3a 78 6d | 2d 3c 73 79 73 74 65 6d |hines:xm|-<system|
|00000fd0| 3e 2e 68 20 3a 47 43 43 | 2e 3c 6d 61 63 68 69 6e |>.h :GCC|.<machin|
|00000fe0| 65 3e 3a 63 6f 6e 66 69 | 67 2e 68 0d 0d 49 66 20 |e>:confi|g.h..If |
|00000ff0| 79 6f 75 27 72 65 20 77 | 6f 72 6b 69 6e 67 20 75 |you're w|orking u|
|00001000| 6e 64 65 72 20 4d 50 57 | 2c 20 74 68 65 6e 20 78 |nder MPW|, then x|
|00001010| 6d 2d 6d 70 77 2e 68 20 | 69 73 20 61 6c 6d 6f 73 |m-mpw.h |is almos|
|00001020| 74 20 61 6c 77 61 79 73 | 20 74 68 65 20 63 6f 72 |t always| the cor|
|00001030| 72 65 63 74 20 66 69 6c | 65 20 66 6f 72 0d 63 6f |rect fil|e for.co|
|00001040| 6e 66 69 67 2e 68 2e 20 | 20 48 6f 77 65 76 65 72 |nfig.h. | However|
|00001050| 2c 20 79 6f 75 20 73 68 | 6f 75 6c 64 20 65 78 61 |, you sh|ould exa|
|00001060| 6d 69 6e 65 20 74 68 65 | 20 66 69 6c 65 20 74 6f |mine the| file to|
|00001070| 20 62 65 20 73 75 72 65 | 20 28 66 6f 72 20 69 6e | be sure| (for in|
|00001080| 73 74 61 6e 63 65 2c 20 | 69 66 20 79 6f 75 0d 64 |stance, |if you.d|
|00001090| 6f 6e 27 74 20 77 61 6e | 74 20 74 6f 20 73 75 70 |on't wan|t to sup|
|000010a0| 70 6f 72 74 20 41 70 70 | 6c 65 27 73 20 43 20 64 |port App|le's C d|
|000010b0| 69 61 6c 65 63 74 20 61 | 73 20 74 68 65 20 73 6f |ialect a|s the so|
|000010c0| 75 72 63 65 20 6c 61 6e | 67 75 61 67 65 2c 20 74 |urce lan|guage, t|
|000010d0| 68 65 6e 20 41 50 50 4c | 45 5f 43 20 73 68 6f 75 |hen APPL|E_C shou|
|000010e0| 6c 64 0d 62 65 20 75 6e | 64 65 66 69 6e 65 64 29 |ld.be un|defined)|
|000010f0| 2e 0d 0d 54 68 65 20 6d | 61 6b 65 66 69 6c 65 20 |...The m|akefile |
|00001100| 73 68 6f 75 6c 64 20 62 | 65 20 69 64 65 6e 74 69 |should b|e identi|
|00001110| 63 61 6c 20 74 6f 20 74 | 68 61 74 20 75 73 65 64 |cal to t|hat used|
|00001120| 20 62 79 20 4d 50 57 20 | 47 43 43 2c 20 61 6c 74 | by MPW |GCC, alt|
|00001130| 68 6f 75 67 68 20 79 6f | 75 20 6d 61 79 20 77 61 |hough yo|u may wa|
|00001140| 6e 74 20 74 6f 0d 63 68 | 61 6e 67 65 20 74 68 65 |nt to.ch|ange the|
|00001150| 20 70 72 6f 67 72 61 6d | 73 27 20 6e 61 6d 65 73 | program|s' names|
|00001160| 20 66 72 6f 6d 20 22 63 | 70 70 22 20 61 6e 64 20 | from "c|pp" and |
|00001170| 22 63 63 31 22 20 74 6f | 20 73 6f 6d 65 74 68 69 |"cc1" to| somethi|
|00001180| 6e 67 20 65 6c 73 65 2e | 20 20 28 59 65 73 2c 20 |ng else.| (Yes, |
|00001190| 63 70 70 0d 69 73 20 73 | 6c 69 67 68 74 6c 79 20 |cpp.is s|lightly |
|000011a0| 64 69 66 66 65 72 65 6e | 74 20 66 6f 72 20 64 69 |differen|t for di|
|000011b0| 66 66 65 72 65 6e 74 20 | 74 61 72 67 65 74 20 6d |fferent |target m|
|000011c0| 61 63 68 69 6e 65 73 3b | 20 66 6f 72 20 6f 6e 65 |achines;| for one|
|000011d0| 20 74 68 69 6e 67 2c 20 | 69 74 20 68 61 73 20 61 | thing, |it has a|
|000011e0| 20 64 69 66 66 65 72 65 | 6e 74 0d 73 65 74 20 6f | differe|nt.set o|
|000011f0| 66 20 70 72 65 64 65 66 | 69 6e 65 64 20 73 79 6d |f predef|ined sym|
|00001200| 62 6f 6c 73 2e 29 20 20 | 54 68 65 20 73 63 72 69 |bols.) |The scri|
|00001210| 70 74 73 20 67 43 20 61 | 6e 64 20 67 43 50 6c 75 |pts gC a|nd gCPlu|
|00001220| 73 20 69 6e 76 6f 6b 69 | 6e 67 20 74 68 65 20 63 |s invoki|ng the c|
|00001230| 6f 6d 70 69 6c 65 72 0d | 77 69 6c 6c 20 61 6c 73 |ompiler.|will als|
|00001240| 6f 20 6e 65 65 64 20 74 | 6f 20 62 65 20 63 68 61 |o need t|o be cha|
|00001250| 6e 67 65 64 20 61 73 20 | 61 70 70 72 6f 70 72 69 |nged as |appropri|
|00001260| 61 74 65 2e 20 20 28 47 | 69 76 69 6e 67 20 74 68 |ate. (G|iving th|
|00001270| 65 6d 20 64 69 66 66 65 | 72 65 6e 74 20 6e 61 6d |em diffe|rent nam|
|00001280| 65 73 20 69 73 20 61 20 | 67 6f 6f 64 0d 69 64 65 |es is a |good.ide|
|00001290| 61 20 68 65 72 65 20 74 | 6f 6f 2e 29 0d 0d 52 45 |a here t|oo.)..RE|
|000012a0| 54 41 52 47 45 54 49 4e | 47 20 54 4f 20 4e 45 57 |TARGETIN|G TO NEW|
|000012b0| 20 4d 41 43 48 49 4e 45 | 53 0d 0d 54 68 65 20 66 | MACHINE|S..The f|
|000012c0| 69 72 73 74 20 74 68 69 | 6e 67 20 74 6f 20 64 6f |irst thi|ng to do|
|000012d0| 20 69 73 20 74 6f 20 73 | 74 75 64 79 20 62 6f 74 | is to s|tudy bot|
|000012e0| 68 20 74 68 65 20 47 43 | 43 20 6d 61 6e 75 61 6c |h the GC|C manual|
|000012f0| 20 77 68 65 72 65 20 69 | 74 20 64 65 73 63 72 69 | where i|t descri|
|00001300| 62 65 73 20 68 6f 77 20 | 74 6f 0d 72 65 74 61 72 |bes how |to.retar|
|00001310| 67 65 74 2c 20 61 73 20 | 77 65 6c 6c 20 61 73 20 |get, as |well as |
|00001320| 65 78 69 73 74 69 6e 67 | 20 6d 61 63 68 69 6e 65 |existing| machine|
|00001330| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 73 2c 20 70 | descrip|tions, p|
|00001340| 61 72 74 69 63 75 6c 61 | 72 6c 79 20 66 6f 72 20 |articula|rly for |
|00001350| 74 68 6f 73 65 20 6d 61 | 63 68 69 6e 65 73 0d 77 |those ma|chines.w|
|00001360| 69 74 68 20 77 68 69 63 | 68 20 79 6f 75 20 61 72 |ith whic|h you ar|
|00001370| 65 20 66 61 6d 69 6c 69 | 61 72 2e 20 20 55 6e 66 |e famili|ar. Unf|
|00001380| 6f 72 74 75 6e 61 74 65 | 6c 79 2c 20 74 68 65 72 |ortunate|ly, ther|
|00001390| 65 20 69 73 20 6e 6f 20 | 72 65 61 6c 6c 79 20 63 |e is no |really c|
|000013a0| 72 79 73 74 61 6c 2d 63 | 6c 65 61 72 0d 64 65 73 |rystal-c|lear.des|
|000013b0| 63 72 69 70 74 69 6f 6e | 20 6f 66 20 72 65 74 61 |cription| of reta|
|000013c0| 72 67 65 74 69 6e 67 20 | 61 6e 79 77 68 65 72 65 |rgeting |anywhere|
|000013d0| 2e 0d 0d 54 68 65 20 65 | 61 73 69 65 73 74 20 61 |...The e|asiest a|
|000013e0| 70 70 72 6f 61 63 68 20 | 69 73 20 74 6f 20 66 69 |pproach |is to fi|
|000013f0| 6e 64 20 61 6e 20 65 78 | 69 73 74 69 6e 67 20 6d |nd an ex|isting m|
|00001400| 61 63 68 69 6e 65 20 64 | 65 73 63 72 69 70 74 69 |achine d|escripti|
|00001410| 6f 6e 20 74 68 61 74 20 | 69 73 20 63 6c 6f 73 65 |on that |is close|
|00001420| 73 74 0d 74 6f 20 74 68 | 65 20 6f 6e 65 20 79 6f |st.to th|e one yo|
|00001430| 75 27 72 65 20 69 6e 74 | 65 72 65 73 74 65 64 2c |u're int|erested,|
|00001440| 20 62 75 69 6c 64 20 74 | 68 65 20 63 6f 6d 70 69 | build t|he compi|
|00001450| 6c 65 72 20 73 6f 20 79 | 6f 75 20 6b 6e 6f 77 20 |ler so y|ou know |
|00001460| 69 74 20 77 69 6c 6c 20 | 63 6f 6d 70 69 6c 65 20 |it will |compile |
|00001470| 61 6e 64 0d 72 75 6e 20 | 63 6f 72 72 65 63 74 6c |and.run |correctl|
|00001480| 79 2c 20 74 68 65 6e 20 | 67 72 61 64 75 61 6c 6c |y, then |graduall|
|00001490| 79 20 6d 75 74 61 74 65 | 20 74 68 65 20 64 65 73 |y mutate| the des|
|000014a0| 63 72 69 70 74 69 6f 6e | 20 75 6e 74 69 6c 20 79 |cription| until y|
|000014b0| 6f 75 27 72 65 20 67 65 | 6e 65 72 61 74 69 6e 67 |ou're ge|nerating|
|000014c0| 20 63 6f 64 65 0d 66 6f | 72 20 79 6f 75 72 20 6d | code.fo|r your m|
|000014d0| 61 63 68 69 6e 65 2e 20 | 20 4d 61 6e 79 20 6f 66 |achine. | Many of|
|000014e0| 20 74 68 65 20 6d 6f 72 | 65 20 6d 79 73 74 65 72 | the mor|e myster|
|000014f0| 69 6f 75 73 20 6d 61 63 | 72 6f 73 20 69 6e 20 74 |ious mac|ros in t|
|00001500| 6d 2e 68 20 61 72 65 20 | 65 78 74 72 65 6d 65 6c |m.h are |extremel|
|00001510| 79 0d 64 69 66 66 69 63 | 75 6c 74 20 74 6f 20 77 |y.diffic|ult to w|
|00001520| 72 69 74 65 20 63 6f 72 | 72 65 63 74 6c 79 2c 20 |rite cor|rectly, |
|00001530| 61 6e 64 20 69 66 20 74 | 6f 6f 20 6d 61 6e 79 20 |and if t|oo many |
|00001540| 61 72 65 20 63 68 61 6e | 67 65 64 20 61 6c 6c 20 |are chan|ged all |
|00001550| 61 74 20 6f 6e 63 65 2c | 20 69 74 20 62 65 63 6f |at once,| it beco|
|00001560| 6d 65 73 0d 77 65 6c 6c | 2d 6e 69 67 68 20 69 6d |mes.well|-nigh im|
|00001570| 70 6f 73 73 69 62 6c 65 | 20 74 6f 20 64 69 73 63 |possible| to disc|
|00001580| 6f 76 65 72 20 74 68 65 | 20 63 61 75 73 65 20 6f |over the| cause o|
|00001590| 66 20 61 20 63 6f 6d 70 | 69 6c 65 72 20 61 62 6f |f a comp|iler abo|
|000015a0| 72 74 2e 0d 0d 47 43 43 | 20 49 4e 54 45 52 4e 41 |rt...GCC| INTERNA|
|000015b0| 4c 53 0d 0d 47 43 43 20 | 69 73 20 75 6e 75 73 75 |LS..GCC |is unusu|
|000015c0| 61 6c 6c 79 20 77 65 6c | 6c 2d 77 72 69 74 74 65 |ally wel|l-writte|
|000015d0| 6e 20 61 6e 64 20 77 65 | 6c 6c 2d 64 6f 63 75 6d |n and we|ll-docum|
|000015e0| 65 6e 74 65 64 2c 20 65 | 73 70 65 63 69 61 6c 6c |ented, e|speciall|
|000015f0| 79 20 63 6f 6e 73 69 64 | 65 72 69 6e 67 20 74 68 |y consid|ering th|
|00001600| 65 20 73 69 7a 65 0d 61 | 6e 64 20 63 6f 6d 70 6c |e size.a|nd compl|
|00001610| 65 78 69 74 79 20 6f 66 | 20 69 74 73 20 69 6e 74 |exity of| its int|
|00001620| 65 6e 64 65 64 20 74 61 | 73 6b 2e 20 20 4e 65 61 |ended ta|sk. Nea|
|00001630| 72 6c 79 20 61 6c 6c 20 | 6f 66 20 74 68 65 20 6d |rly all |of the m|
|00001640| 61 63 68 69 6e 65 2d 69 | 6e 64 65 70 65 6e 64 65 |achine-i|ndepende|
|00001650| 6e 74 20 63 6f 64 65 0d | 72 65 61 6c 6c 79 20 69 |nt code.|really i|
|00001660| 73 20 6d 61 63 68 69 6e | 65 2d 69 6e 64 65 70 65 |s machin|e-indepe|
|00001670| 6e 64 65 6e 74 2c 20 61 | 6c 74 68 6f 75 67 68 20 |ndent, a|lthough |
|00001680| 69 74 73 20 65 66 66 65 | 63 74 69 76 65 6e 65 73 |its effe|ctivenes|
|00001690| 73 20 66 61 6c 6c 73 20 | 6f 66 66 20 61 73 20 6f |s falls |off as o|
|000016a0| 6e 65 20 67 65 74 73 0d | 66 75 72 74 68 65 72 20 |ne gets.|further |
|000016b0| 61 77 61 79 20 66 72 6f | 6d 20 74 68 65 20 56 41 |away fro|m the VA|
|000016c0| 58 2f 36 38 4b 2f 38 38 | 4b 2f 4d 69 70 73 20 73 |X/68K/88|K/Mips s|
|000016d0| 70 65 63 74 72 75 6d 20 | 6f 66 20 6d 61 63 68 69 |pectrum |of machi|
|000016e0| 6e 65 73 20 61 6e 64 20 | 74 68 65 20 55 6e 69 78 |nes and |the Unix|
|000016f0| 2f 55 6e 69 78 2d 6c 6f | 6f 6b 61 6c 69 6b 65 0d |/Unix-lo|okalike.|
|00001700| 73 70 65 63 74 72 75 6d | 20 6f 66 20 6f 70 65 72 |spectrum| of oper|
|00001710| 61 74 69 6e 67 20 73 79 | 73 74 65 6d 73 2e 0d 0d |ating sy|stems...|
|00001720| 54 68 65 20 6d 6f 64 69 | 66 69 63 61 74 69 6f 6e |The modi|fication|
|00001730| 73 20 74 68 61 74 20 77 | 65 72 65 20 6d 61 64 65 |s that w|ere made|
|00001740| 20 74 6f 20 67 65 74 20 | 47 43 43 20 74 6f 20 77 | to get |GCC to w|
|00001750| 6f 72 6b 20 75 6e 64 65 | 72 20 4d 50 57 20 66 61 |ork unde|r MPW fa|
|00001760| 6c 6c 20 69 6e 74 6f 20 | 73 65 76 65 72 61 6c 0d |ll into |several.|
|00001770| 63 61 74 65 67 6f 72 69 | 65 73 2c 20 65 61 63 68 |categori|es, each|
|00001780| 20 66 6c 61 67 67 65 64 | 20 62 79 20 61 20 64 69 | flagged| by a di|
|00001790| 73 74 69 6e 63 74 20 70 | 72 65 70 72 6f 63 65 73 |stinct p|reproces|
|000017a0| 73 6f 72 20 73 79 6d 62 | 6f 6c 2e 0d 0d 4d 50 57 |sor symb|ol...MPW|
|000017b0| 20 69 73 20 66 6f 72 20 | 74 68 6f 73 65 20 63 68 | is for |those ch|
|000017c0| 61 6e 67 65 73 20 72 65 | 71 75 69 72 65 64 20 62 |anges re|quired b|
|000017d0| 79 20 74 68 65 20 4d 50 | 57 20 65 6e 76 69 72 6f |y the MP|W enviro|
|000017e0| 6e 6d 65 6e 74 2c 20 69 | 6e 64 65 70 65 6e 64 65 |nment, i|ndepende|
|000017f0| 6e 74 20 6f 66 20 74 68 | 65 20 63 6f 6d 70 69 6c |nt of th|e compil|
|00001800| 65 72 0d 75 73 65 64 20 | 28 74 79 70 69 63 61 6c |er.used |(typical|
|00001810| 6c 79 20 23 69 6e 63 6c | 75 64 65 73 20 61 6e 64 |ly #incl|udes and|
|00001820| 20 66 69 6c 65 20 68 61 | 6e 64 6c 69 6e 67 29 2e | file ha|ndling).|
|00001830| 20 20 4d 6f 73 74 20 6f | 66 20 74 68 65 73 65 20 | Most o|f these |
|00001840| 6f 63 63 75 72 20 69 6e | 20 63 6f 6e 74 65 78 74 |occur in| context|
|00001850| 73 20 77 68 65 72 65 0d | 79 6f 75 27 6c 6c 20 61 |s where.|you'll a|
|00001860| 6c 73 6f 20 73 65 65 20 | 55 53 47 20 28 53 79 73 |lso see |USG (Sys|
|00001870| 74 65 6d 20 56 20 55 6e | 69 78 29 2c 20 56 4d 53 |tem V Un|ix), VMS|
|00001880| 2c 20 61 6e 64 20 4d 53 | 44 4f 53 20 63 6f 6e 64 |, and MS|DOS cond|
|00001890| 69 74 69 6f 6e 61 6c 73 | 2e 20 20 54 68 65 72 65 |itionals|. There|
|000018a0| 20 61 72 65 20 73 6f 6d | 65 0d 4d 50 57 5f 33 31 | are som|e.MPW_31|
|000018b0| 20 63 6f 6e 64 69 74 69 | 6f 6e 61 6c 73 20 74 68 | conditi|onals th|
|000018c0| 61 74 20 61 72 65 20 69 | 6d 61 67 69 6e 65 64 20 |at are i|magined |
|000018d0| 28 61 68 65 6d 29 20 74 | 6f 20 77 6f 72 6b 20 61 |(ahem) t|o work a|
|000018e0| 72 6f 75 6e 64 20 62 75 | 67 73 20 69 6e 20 4d 50 |round bu|gs in MP|
|000018f0| 57 20 33 2e 31 20 6f 6e | 6c 79 2e 0d 0d 41 50 50 |W 3.1 on|ly...APP|
|00001900| 4c 45 5f 43 20 69 6e 64 | 69 63 61 74 65 73 20 74 |LE_C ind|icates t|
|00001910| 68 6f 73 65 20 63 68 61 | 6e 67 65 73 20 6e 65 63 |hose cha|nges nec|
|00001920| 65 73 73 61 72 79 20 74 | 6f 20 73 75 70 70 6f 72 |essary t|o suppor|
|00001930| 74 20 41 70 70 6c 65 27 | 73 20 64 69 61 6c 65 63 |t Apple'|s dialec|
|00001940| 74 20 6f 66 20 43 2c 20 | 73 75 63 68 20 61 73 0d |t of C, |such as.|
|00001950| 74 68 65 20 70 61 73 63 | 61 6c 20 6b 65 79 77 6f |the pasc|al keywo|
|00001960| 72 64 20 61 6e 64 20 64 | 69 72 65 63 74 20 66 75 |rd and d|irect fu|
|00001970| 6e 63 74 69 6f 6e 20 64 | 65 66 69 6e 69 74 69 6f |nction d|efinitio|
|00001980| 6e 73 2e 20 20 48 6f 77 | 65 76 65 72 2c 20 73 6f |ns. How|ever, so|
|00001990| 6d 65 20 63 68 61 6e 67 | 65 73 20 74 6f 20 74 68 |me chang|es to th|
|000019a0| 65 0d 70 61 72 73 65 72 | 20 68 61 76 65 20 6e 6f |e.parser| have no|
|000019b0| 74 20 62 65 65 6e 20 73 | 6f 20 6d 61 72 6b 65 64 |t been s|o marked|
|000019c0| 20 28 73 69 6e 63 65 20 | 69 74 20 67 65 74 73 20 | (since |it gets |
|000019d0| 72 75 6e 20 74 68 72 6f | 75 67 68 20 62 69 73 6f |run thro|ugh biso|
|000019e0| 6e 29 2e 0d 0d 4d 50 57 | 5f 43 20 69 73 20 66 6f |n)...MPW|_C is fo|
|000019f0| 72 20 70 6c 61 63 65 73 | 20 69 6e 20 74 68 65 20 |r places| in the |
|00001a00| 47 43 43 20 63 6f 64 65 | 20 74 68 61 74 20 68 61 |GCC code| that ha|
|00001a10| 64 20 74 6f 20 62 65 20 | 63 68 61 6e 67 65 64 20 |d to be |changed |
|00001a20| 74 6f 20 67 65 74 20 74 | 68 65 20 4d 50 57 20 43 |to get t|he MPW C|
|00001a30| 20 63 6f 6d 70 69 6c 65 | 72 0d 74 6f 20 68 61 6e | compile|r.to han|
|00001a40| 64 6c 65 20 74 68 65 6d | 20 63 6f 72 72 65 63 74 |dle them| correct|
|00001a50| 6c 79 2e 20 20 53 6f 6d | 65 20 6f 66 20 74 68 65 |ly. Som|e of the|
|00001a60| 73 65 20 61 72 65 20 4d | 50 57 5f 43 33 31 2c 20 |se are M|PW_C31, |
|00001a70| 66 6f 72 20 62 75 67 73 | 20 74 68 61 74 20 61 72 |for bugs| that ar|
|00001a80| 65 20 73 75 70 70 6f 73 | 65 64 20 74 6f 0d 68 61 |e suppos|ed to.ha|
|00001a90| 76 65 20 62 65 65 6e 20 | 66 69 78 65 64 20 69 6e |ve been |fixed in|
|00001aa0| 20 33 2e 32 2e 0d 0d 41 | 50 50 4c 45 5f 48 41 58 | 3.2...A|PPLE_HAX|
|00001ab0| 20 69 73 20 66 6f 72 20 | 67 65 6e 65 72 69 63 20 | is for |generic |
|00001ac0| 63 68 61 6e 67 65 73 20 | 74 68 61 74 20 77 6f 75 |changes |that wou|
|00001ad0| 6c 64 20 62 65 20 77 6f | 72 74 68 77 68 69 6c 65 |ld be wo|rthwhile|
|00001ae0| 20 66 6f 72 20 61 6e 79 | 20 76 65 72 73 69 6f 6e | for any| version|
|00001af0| 20 6f 66 20 47 43 43 2e | 0d 53 6f 6d 65 20 6f 66 | of GCC.|.Some of|
|00001b00| 20 74 68 65 73 65 20 72 | 65 6d 6f 76 65 20 47 43 | these r|emove GC|
|00001b10| 43 27 73 20 6c 69 6d 69 | 74 61 74 69 6f 6e 73 20 |C's limi|tations |
|00001b20| 77 69 74 68 20 72 65 73 | 70 65 63 74 20 74 6f 20 |with res|pect to |
|00001b30| 74 68 65 20 4d 50 57 20 | 65 6e 76 69 72 6f 6e 6d |the MPW |environm|
|00001b40| 65 6e 74 2c 20 73 75 63 | 68 20 61 73 0d 74 68 65 |ent, suc|h as.the|
|00001b50| 20 6e 65 65 64 20 74 6f | 20 69 6d 70 6f 72 74 20 | need to| import |
|00001b60| 76 61 72 69 61 62 6c 65 | 73 20 66 6f 72 20 65 61 |variable|s for ea|
|00001b70| 63 68 20 66 75 6e 63 74 | 69 6f 6e 2c 20 61 6e 64 |ch funct|ion, and|
|00001b80| 20 77 6f 72 6b 20 69 6e | 20 63 6f 6e 6a 75 6e 63 | work in| conjunc|
|00001b90| 74 69 6f 6e 20 77 69 74 | 68 0d 62 69 74 73 20 6f |tion wit|h.bits o|
|00001ba0| 66 20 74 68 65 20 74 61 | 72 67 65 74 20 6d 61 63 |f the ta|rget mac|
|00001bb0| 68 69 6e 65 20 64 65 73 | 63 72 69 70 74 69 6f 6e |hine des|cription|
|00001bc0| 2e 0d 0d 54 52 4f 55 42 | 4c 45 53 48 4f 4f 54 49 |...TROUB|LESHOOTI|
|00001bd0| 4e 47 0d 0d 54 68 65 72 | 65 20 61 72 65 20 74 77 |NG..Ther|e are tw|
|00001be0| 6f 20 72 6f 75 74 69 6e | 65 73 20 63 72 75 63 69 |o routin|es cruci|
|00001bf0| 61 6c 20 74 6f 20 64 65 | 62 75 67 67 69 6e 67 20 |al to de|bugging |
|00001c00| 2d 20 64 65 62 75 67 5f | 64 75 6d 70 5f 74 72 65 |- debug_|dump_tre|
|00001c10| 65 28 29 20 69 73 20 61 | 20 6f 6e 65 2d 61 72 67 |e() is a| one-arg|
|00001c20| 75 6d 65 6e 74 0d 66 75 | 6e 63 74 69 6f 6e 20 74 |ument.fu|nction t|
|00001c30| 68 61 74 20 74 61 6b 65 | 73 20 61 20 74 72 65 65 |hat take|s a tree|
|00001c40| 20 73 74 72 75 63 74 75 | 72 65 20 61 6e 64 20 70 | structu|re and p|
|00001c50| 72 69 6e 74 73 20 69 74 | 20 6f 6e 20 73 74 64 65 |rints it| on stde|
|00001c60| 72 72 2c 20 77 68 69 6c | 65 20 64 65 62 75 67 5f |rr, whil|e debug_|
|00001c70| 72 74 78 28 29 0d 64 6f | 65 73 20 74 68 65 20 73 |rtx().do|es the s|
|00001c80| 61 6d 65 20 66 6f 72 20 | 72 74 6c 20 65 78 70 72 |ame for |rtl expr|
|00001c90| 65 73 73 69 6f 6e 73 2e | 20 20 54 68 65 73 65 20 |essions.| These |
|00001ca0| 61 72 65 20 65 73 70 65 | 63 69 61 6c 6c 79 20 75 |are espe|cially u|
|00001cb0| 73 65 66 75 6c 20 74 6f | 20 69 6e 73 65 72 74 20 |seful to| insert |
|00001cc0| 6a 75 73 74 0d 69 6e 20 | 66 72 6f 6e 74 20 6f 66 |just.in |front of|
|00001cd0| 20 61 20 63 61 6c 6c 20 | 74 6f 20 61 62 6f 72 74 | a call |to abort|
|00001ce0| 28 29 2e 0d 0d 00 00 00 | 00 00 00 00 00 00 00 00 |()......|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00001d10| 00 00 00 11 0e 43 6c 69 | 70 62 6f 61 72 64 20 46 |.....Cli|pboard F|
|00001d20| 69 6c 65 64 02 00 00 00 | 43 4c 49 50 4d 41 43 53 |iled....|CLIPMACS|
|00001d30| 0b 48 61 63 6b 69 6e 67 | 20 47 43 43 02 00 00 00 |.Hacking| GCC....|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 a3 81 50 c8 00 00 | 00 00 00 00 01 ac 00 00 |....P...|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 0b 00 00 00 00 11 |........|........|
|00001d90| 05 43 6f 6c 6f 72 02 00 | 00 00 63 64 65 76 63 6f |.Color..|..cdevco|
|00001da0| 6c 72 31 80 00 14 00 00 | 00 00 00 00 1e 18 00 00 |lr1.....|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 07 c8 00 00 |........|........|
|00001dc0| 0c 00 a1 29 65 c0 a1 29 | 65 c0 00 00 00 00 00 00 |...)e..)|e.......|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 2f 11 00 02 |........|..../...|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 14 |...H..Mo|naco....|
|00001e10| 00 01 93 34 00 0a 80 01 | 80 01 7f ff 7f ff 00 cf |...4....|........|
|00001e20| 00 00 00 14 00 01 00 06 | 00 04 00 8c 00 14 01 dc |........|........|
|00001e30| 02 3d 00 8c 00 14 01 dc | 02 3d a3 70 64 e3 00 00 |.=......|.=.pd...|
|00001e40| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 1e |........|........|
|00001e50| 00 8c 00 14 01 dc 02 3d | 00 8c 00 14 01 dc 02 3d |.......=|.......=|
|00001e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e70| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 48 |.....n..|.n...>.H|
|00001e80| 63 c8 06 9e 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |c.......|.>..MPSR|
|00001e90| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00001ea0| 03 f0 ff ff 00 00 00 4c | 00 4a 4b 0c 00 00 00 00 |.......L|.JK.....|
|00001eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+